package com.forum.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * 
 * @TableName comment_tipoff_info
 */
@TableName(value ="comment_tipoff_info")
public class CommentTipoffInfo implements Serializable {
    /**
     * 
     */
    @TableId
    private Long tipoffId;

    /**
     * 举报评论的id
     */
    private Integer commentId;

    /**
     * 举报者id
     */
    private Long userId;

    /**
     * 被举报者id
     */
    private Long informedUserId;

    /**
     * 
     */
    private String description;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(select = false)
    private Integer deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getTipoffId() {
        return tipoffId;
    }

    /**
     * 
     */
    public void setTipoffId(Long tipoffId) {
        this.tipoffId = tipoffId;
    }

    /**
     * 举报评论的id
     */
    public Integer getCommentId() {
        return commentId;
    }

    /**
     * 举报评论的id
     */
    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    /**
     * 举报者id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 举报者id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 被举报者id
     */
    public Long getInformedUserId() {
        return informedUserId;
    }

    /**
     * 被举报者id
     */
    public void setInformedUserId(Long informedUserId) {
        this.informedUserId = informedUserId;
    }

    /**
     * 
     */
    public String getDescription() {
        return description;
    }

    /**
     * 
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 逻辑删除
     */
    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * 逻辑删除
     */
    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CommentTipoffInfo other = (CommentTipoffInfo) that;
        return (this.getTipoffId() == null ? other.getTipoffId() == null : this.getTipoffId().equals(other.getTipoffId()))
            && (this.getCommentId() == null ? other.getCommentId() == null : this.getCommentId().equals(other.getCommentId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getInformedUserId() == null ? other.getInformedUserId() == null : this.getInformedUserId().equals(other.getInformedUserId()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTipoffId() == null) ? 0 : getTipoffId().hashCode());
        result = prime * result + ((getCommentId() == null) ? 0 : getCommentId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getInformedUserId() == null) ? 0 : getInformedUserId().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tipoffId=").append(tipoffId);
        sb.append(", commentId=").append(commentId);
        sb.append(", userId=").append(userId);
        sb.append(", informedUserId=").append(informedUserId);
        sb.append(", description=").append(description);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}